﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true" CodeBehind="privilege.aspx.cs" Inherits="School.Pages.Organization.privilege" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 100%">
        <tr>
            <td align="left" style="width: 362px">
                اسم المستخدم&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
            <td align="left" style="width: 270px">
                <asp:DropDownList ID="dd_username" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="dd_username_SelectedIndexChanged" Width="183px">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" style="width: 362px">
                &nbsp;</td>
            <td align="left" style="width: 270px">
                <asp:Button ID="b_save" runat="server" onclick="Button1_Click" 
                    Text="حفظ التعديلات " />
            &nbsp;
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="3">
                <asp:GridView ID="gv_privilege" runat="server"  Height="16px" PageSize="20" 
                    Width="403px"  
                    DataKeyNames="Id" AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField HeaderText="رقم التسلسل" Visible="true">                            
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("Id") %>' Visible="true"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="pagename" HeaderText="اسم الصفحه" />
                        <asp:TemplateField HeaderText="صلاحيات">
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox2" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                
                
                    <PagerSettings Mode="NextPreviousFirstLast" />
                
                
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
